PulseCanvas / app · pulsecanvas.ai / Sources / PulseCanvas / Resources / ProjectM / Presets / Hypnotic / Polar Mirror / Reenen & Telek - Slow Shift Matrix (bb4-5 (Dynamic Beat) Mix [Flexi Nonlinear Moebius Spiral Kaleidoscope].milk
| 1 | MILKDROP_PRESET_VERSION=201 |
| 2 | PSVERSION=3 |
| 3 | PSVERSION_WARP=0 |
| 4 | PSVERSION_COMP=3 |
| 5 | [preset00] |
| 6 | fRating=5.000000 |
| 7 | fGammaAdj=1.000 |
| 8 | fDecay=0.900 |
| 9 | fVideoEchoZoom=1.000 |
| 10 | fVideoEchoAlpha=0.000 |
| 11 | nVideoEchoOrientation=3 |
| 12 | nWaveMode=3 |
| 13 | bAdditiveWaves=1 |
| 14 | bWaveDots=0 |
| 15 | bWaveThick=0 |
| 16 | bModWaveAlphaByVolume=0 |
| 17 | bMaximizeWaveColor=1 |
| 18 | bTexWrap=1 |
| 19 | bDarkenCenter=0 |
| 20 | bRedBlueStereo=0 |
| 21 | bBrighten=0 |
| 22 | bDarken=0 |
| 23 | bSolarize=0 |
| 24 | bInvert=0 |
| 25 | fWaveAlpha=0.002 |
| 26 | fWaveScale=0.387 |
| 27 | fWaveSmoothing=0.630 |
| 28 | fWaveParam=1.000 |
| 29 | fModWaveAlphaStart=2.000 |
| 30 | fModWaveAlphaEnd=2.000 |
| 31 | fWarpAnimSpeed=43.865 |
| 32 | fWarpScale=3.646 |
| 33 | fZoomExponent=1.00000 |
| 34 | fShader=0.000 |
| 35 | zoom=1.00000 |
| 36 | rot=0.00000 |
| 37 | cx=0.500 |
| 38 | cy=0.500 |
| 39 | dx=0.00000 |
| 40 | dy=0.00000 |
| 41 | warp=0.00100 |
| 42 | sx=1.00000 |
| 43 | sy=1.00000 |
| 44 | wave_r=0.650 |
| 45 | wave_g=0.650 |
| 46 | wave_b=0.650 |
| 47 | wave_x=0.500 |
| 48 | wave_y=0.500 |
| 49 | ob_size=0.000 |
| 50 | ob_r=0.000 |
| 51 | ob_g=0.000 |
| 52 | ob_b=0.300 |
| 53 | ob_a=1.000 |
| 54 | ib_size=0.050 |
| 55 | ib_r=1.000 |
| 56 | ib_g=0.250 |
| 57 | ib_b=0.250 |
| 58 | ib_a=1.000 |
| 59 | nMotionVectorsX=0.000 |
| 60 | nMotionVectorsY=48.000 |
| 61 | mv_dx=-0.941 |
| 62 | mv_dy=0.426 |
| 63 | mv_l=5.000 |
| 64 | mv_r=0.316 |
| 65 | mv_g=0.078 |
| 66 | mv_b=0.942 |
| 67 | mv_a=0.000 |
| 68 | b1n=0.000 |
| 69 | b2n=0.000 |
| 70 | b3n=0.000 |
| 71 | b1x=1.000 |
| 72 | b2x=1.000 |
| 73 | b3x=1.000 |
| 74 | b1ed=0.250 |
| 75 | wavecode_0_enabled=0 |
| 76 | wavecode_0_samples=512 |
| 77 | wavecode_0_sep=0 |
| 78 | wavecode_0_bSpectrum=0 |
| 79 | wavecode_0_bUseDots=0 |
| 80 | wavecode_0_bDrawThick=0 |
| 81 | wavecode_0_bAdditive=0 |
| 82 | wavecode_0_scaling=1.00000 |
| 83 | wavecode_0_smoothing=0.50000 |
| 84 | wavecode_0_r=1.000 |
| 85 | wavecode_0_g=1.000 |
| 86 | wavecode_0_b=1.000 |
| 87 | wavecode_0_a=1.000 |
| 88 | wavecode_1_enabled=0 |
| 89 | wavecode_1_samples=512 |
| 90 | wavecode_1_sep=0 |
| 91 | wavecode_1_bSpectrum=0 |
| 92 | wavecode_1_bUseDots=0 |
| 93 | wavecode_1_bDrawThick=0 |
| 94 | wavecode_1_bAdditive=0 |
| 95 | wavecode_1_scaling=1.00000 |
| 96 | wavecode_1_smoothing=0.50000 |
| 97 | wavecode_1_r=1.000 |
| 98 | wavecode_1_g=1.000 |
| 99 | wavecode_1_b=1.000 |
| 100 | wavecode_1_a=1.000 |
| 101 | wavecode_2_enabled=0 |
| 102 | wavecode_2_samples=512 |
| 103 | wavecode_2_sep=0 |
| 104 | wavecode_2_bSpectrum=0 |
| 105 | wavecode_2_bUseDots=0 |
| 106 | wavecode_2_bDrawThick=0 |
| 107 | wavecode_2_bAdditive=0 |
| 108 | wavecode_2_scaling=1.00000 |
| 109 | wavecode_2_smoothing=0.50000 |
| 110 | wavecode_2_r=1.000 |
| 111 | wavecode_2_g=1.000 |
| 112 | wavecode_2_b=1.000 |
| 113 | wavecode_2_a=1.000 |
| 114 | wavecode_3_enabled=0 |
| 115 | wavecode_3_samples=512 |
| 116 | wavecode_3_sep=0 |
| 117 | wavecode_3_bSpectrum=0 |
| 118 | wavecode_3_bUseDots=0 |
| 119 | wavecode_3_bDrawThick=0 |
| 120 | wavecode_3_bAdditive=0 |
| 121 | wavecode_3_scaling=1.00000 |
| 122 | wavecode_3_smoothing=0.50000 |
| 123 | wavecode_3_r=1.000 |
| 124 | wavecode_3_g=1.000 |
| 125 | wavecode_3_b=1.000 |
| 126 | wavecode_3_a=1.000 |
| 127 | shapecode_0_enabled=1 |
| 128 | shapecode_0_sides=44 |
| 129 | shapecode_0_additive=1 |
| 130 | shapecode_0_thickOutline=0 |
| 131 | shapecode_0_textured=1 |
| 132 | shapecode_0_num_inst=1 |
| 133 | shapecode_0_x=0.500 |
| 134 | shapecode_0_y=0.500 |
| 135 | shapecode_0_rad=0.66230 |
| 136 | shapecode_0_ang=0.00000 |
| 137 | shapecode_0_tex_ang=0.00000 |
| 138 | shapecode_0_tex_zoom=1.00000 |
| 139 | shapecode_0_r=1.000 |
| 140 | shapecode_0_g=1.000 |
| 141 | shapecode_0_b=1.000 |
| 142 | shapecode_0_a=0.700 |
| 143 | shapecode_0_r2=1.000 |
| 144 | shapecode_0_g2=1.000 |
| 145 | shapecode_0_b2=1.000 |
| 146 | shapecode_0_a2=0.000 |
| 147 | shapecode_0_border_r=1.000 |
| 148 | shapecode_0_border_g=1.000 |
| 149 | shapecode_0_border_b=1.000 |
| 150 | shapecode_0_border_a=0.000 |
| 151 | shape_0_init1=ox = 0.5; |
| 152 | shape_0_init2=oy = 0.5; |
| 153 | shape_0_per_frame1=btime = btime + min(bass*0.1,0.05); |
| 154 | shape_0_per_frame2=ang = btime*.1; |
| 155 | shape_0_per_frame3=r = abs(sin(time*1.4+5)); |
| 156 | shape_0_per_frame4=g = abs(sin(time*1.6+3)); |
| 157 | shape_0_per_frame5=b = abs(sin(time*1.8+1)); |
| 158 | shape_0_per_frame6=bt = btime*sign(sin(time/fps)); |
| 159 | shape_0_per_frame7=x = ox + 0.01*sin(bt) + 0.005*sin(bt+bass); |
| 160 | shape_0_per_frame8=x = if(above(x,1),1+(1-x),x); |
| 161 | shape_0_per_frame9=y = oy + 0.01*cos(bt) + 0.005*cos(bt+bass); |
| 162 | shape_0_per_frame10=y = if(above(y,1),1+(1-y),y); |
| 163 | shape_0_per_frame11=x = if(below(x,0),-x,x); |
| 164 | shape_0_per_frame12=y = if(below(y,0),-y,y); |
| 165 | shape_0_per_frame13=ox = x; |
| 166 | shape_0_per_frame14=oy = y; |
| 167 | shapecode_1_enabled=1 |
| 168 | shapecode_1_sides=33 |
| 169 | shapecode_1_additive=1 |
| 170 | shapecode_1_thickOutline=0 |
| 171 | shapecode_1_textured=0 |
| 172 | shapecode_1_num_inst=1 |
| 173 | shapecode_1_x=0.500 |
| 174 | shapecode_1_y=0.500 |
| 175 | shapecode_1_rad=0.54279 |
| 176 | shapecode_1_ang=0.00000 |
| 177 | shapecode_1_tex_ang=0.00000 |
| 178 | shapecode_1_tex_zoom=1.00000 |
| 179 | shapecode_1_r=0.500 |
| 180 | shapecode_1_g=0.500 |
| 181 | shapecode_1_b=0.500 |
| 182 | shapecode_1_a=0.700 |
| 183 | shapecode_1_r2=0.500 |
| 184 | shapecode_1_g2=0.500 |
| 185 | shapecode_1_b2=0.500 |
| 186 | shapecode_1_a2=0.000 |
| 187 | shapecode_1_border_r=1.000 |
| 188 | shapecode_1_border_g=1.000 |
| 189 | shapecode_1_border_b=1.000 |
| 190 | shapecode_1_border_a=0.000 |
| 191 | shape_1_per_frame1=bv = treb*.1+.7*bv; |
| 192 | shape_1_per_frame2=tt=tt+bv*0.05; |
| 193 | shape_1_per_frame3=r = r+0.2*sin(tt*1.4+5); |
| 194 | shape_1_per_frame4=g = g+0.2*sin(tt*1.6+3); |
| 195 | shape_1_per_frame5=b = b+0.2*sin(tt*1.8+1); |
| 196 | shape_1_per_frame6=r2 = r; |
| 197 | shape_1_per_frame7=b2 = b; |
| 198 | shape_1_per_frame8=g2 = g; |
| 199 | shape_1_per_frame9=x = 0.5 + 0.3*sin(tt) + 0.1*sin(time); |
| 200 | shape_1_per_frame10=y = 0.5 + 0.3*cos(tt) + 0.1*cos(time); |
| 201 | shapecode_2_enabled=0 |
| 202 | shapecode_2_sides=4 |
| 203 | shapecode_2_additive=0 |
| 204 | shapecode_2_thickOutline=0 |
| 205 | shapecode_2_textured=0 |
| 206 | shapecode_2_num_inst=1 |
| 207 | shapecode_2_x=0.500 |
| 208 | shapecode_2_y=0.500 |
| 209 | shapecode_2_rad=0.10000 |
| 210 | shapecode_2_ang=0.00000 |
| 211 | shapecode_2_tex_ang=0.00000 |
| 212 | shapecode_2_tex_zoom=1.00000 |
| 213 | shapecode_2_r=1.000 |
| 214 | shapecode_2_g=0.000 |
| 215 | shapecode_2_b=0.000 |
| 216 | shapecode_2_a=1.000 |
| 217 | shapecode_2_r2=0.000 |
| 218 | shapecode_2_g2=1.000 |
| 219 | shapecode_2_b2=0.000 |
| 220 | shapecode_2_a2=0.000 |
| 221 | shapecode_2_border_r=1.000 |
| 222 | shapecode_2_border_g=1.000 |
| 223 | shapecode_2_border_b=1.000 |
| 224 | shapecode_2_border_a=0.100 |
| 225 | shapecode_3_enabled=0 |
| 226 | shapecode_3_sides=4 |
| 227 | shapecode_3_additive=0 |
| 228 | shapecode_3_thickOutline=0 |
| 229 | shapecode_3_textured=0 |
| 230 | shapecode_3_num_inst=1 |
| 231 | shapecode_3_x=0.500 |
| 232 | shapecode_3_y=0.500 |
| 233 | shapecode_3_rad=0.10000 |
| 234 | shapecode_3_ang=0.00000 |
| 235 | shapecode_3_tex_ang=0.00000 |
| 236 | shapecode_3_tex_zoom=1.00000 |
| 237 | shapecode_3_r=1.000 |
| 238 | shapecode_3_g=0.000 |
| 239 | shapecode_3_b=0.000 |
| 240 | shapecode_3_a=1.000 |
| 241 | shapecode_3_r2=0.000 |
| 242 | shapecode_3_g2=1.000 |
| 243 | shapecode_3_b2=0.000 |
| 244 | shapecode_3_a2=0.000 |
| 245 | shapecode_3_border_r=1.000 |
| 246 | shapecode_3_border_g=1.000 |
| 247 | shapecode_3_border_b=1.000 |
| 248 | shapecode_3_border_a=0.100 |
| 249 | per_frame_init_1=tt = rand(10000); |
| 250 | per_frame_init_2= |
| 251 | per_frame_1=warp = 0; |
| 252 | per_frame_2=rate = fps/(fps+2); |
| 253 | per_frame_3=bv = bass*.1+.7*bv; |
| 254 | per_frame_4=tt=tt+bv*0.05; |
| 255 | per_frame_5= |
| 256 | per_frame_6=beat = above(bass*bass_att,bthresh); |
| 257 | per_frame_7=bthresh = beat*15 + (1-beat)*((bthresh - 4.5)*rate + 4.5); |
| 258 | per_frame_8= |
| 259 | per_frame_9=beat2 = above(mid,bthresh2); |
| 260 | per_frame_10=bthresh2 = beat2*15 + (1-beat2)*((bthresh2 - 1.5)*rate + 1.5); |
| 261 | per_frame_11= |
| 262 | per_frame_12=warp = beat2*3 + (1-beat2)*ow; |
| 263 | per_frame_13=ow = warp*rate*rate; |
| 264 | per_frame_14= |
| 265 | per_frame_15=tt = if(beat,rand(32768),tt); |
| 266 | per_frame_16=wave_x =-1; |
| 267 | per_frame_17=dx = .3*sin(tt*.12)+10*sin(tt*.015); |
| 268 | per_frame_18=dy = .39*sin(tt*.21)+20*sin(tt*.041); |
| 269 | per_frame_19=rot = 1*sin(tt*.15); |
| 270 | per_frame_20=cx = sin(tt*.16)*.5+.5; |
| 271 | per_frame_21=cy = cos(tt*.46)*.5+.5; |
| 272 | per_frame_22=ib_r = sin(tt*.51)*.5+.5; |
| 273 | per_frame_23=ib_g = sin(tt*.71)*.5+.5; |
| 274 | per_frame_24=ib_b = sin(tt*.81)*.5+.5; |
| 275 | per_frame_25=ib_a = 1-pow(.5,(mid_att + bass_att + treb_att)/3); |
| 276 | per_frame_26=monitor = 1-pow(.5,mid_att + bass_att + treb_att); |
| 277 | per_frame_27= |
| 278 | per_frame_28= |
| 279 | per_frame_29=// a |
| 280 | per_frame_30=scale = 8; |
| 281 | per_frame_31=angle = -time*0.1; |
| 282 | per_frame_32= |
| 283 | per_frame_33=q1 = scale*cos(angle); // the real part |
| 284 | per_frame_34=q2 = scale*sin(angle); // the imaginary part |
| 285 | per_frame_35= |
| 286 | per_frame_36=// b |
| 287 | per_frame_37= |
| 288 | per_frame_38=q3 = 0; // the real part |
| 289 | per_frame_39=q4 = 0.3; // the imaginary part |
| 290 | per_frame_40= |
| 291 | per_frame_41=// c |
| 292 | per_frame_42=scale = 0.8; |
| 293 | per_frame_43=angle = time*0.1; |
| 294 | per_frame_44= |
| 295 | per_frame_45=q5 = scale*cos(angle); // the real part |
| 296 | per_frame_46=q6 = scale*sin(angle); // the imaginary part |
| 297 | per_frame_47= |
| 298 | per_frame_48=// d |
| 299 | per_frame_49=q7 = -0.25; // the real part |
| 300 | per_frame_50=q8 = 0.2; // the imaginary part |
| 301 | per_frame_51= |
| 302 | per_frame_52=q11 = 1/asin(1); |
| 303 | per_pixel_1=zoom = .8-.2*pow(1-rad,1); |
| 304 | per_pixel_2=//cx = q8*(0&(x*10-0.5))*0.1+0.05; |
| 305 | per_pixel_3=//cy = q8*(0&(y*10-0.5))*0.1+0.05; |
| 306 | comp_1=`sampler sampler_sunrise; |
| 307 | comp_2=` |
| 308 | comp_3=`float2 factorA, factorB, product; |
| 309 | comp_4=`float2 numerator, denominator, fraction; |
| 310 | comp_5=` |
| 311 | comp_6=`shader_body |
| 312 | comp_7=`{ |
| 313 | comp_8=`float2 uvo = uv; |
| 314 | comp_9=`//*** Flexis Moebius transformation code |
| 315 | comp_10=` |
| 316 | comp_11=`uv = (uv-0.5)*aspect.xy*2; |
| 317 | comp_12=`factorA = uv; |
| 318 | comp_13=`factorB = float2(q1,q2); |
| 319 | comp_14=`product = float2( factorA.x*factorB.x - factorA.y*factorB.y, // the products real part |
| 320 | comp_15=` factorA.x*factorB.y + factorA.y*factorB.x); // the products imaginary part |
| 321 | comp_16=` |
| 322 | comp_17=`numerator = product + float2(q3,q4); |
| 323 | comp_18=` |
| 324 | comp_19=`factorA = uv; |
| 325 | comp_20=`factorB = float2(q5,q6); |
| 326 | comp_21=`product = float2( factorA.x*factorB.x - factorA.y*factorB.y, // the products real part |
| 327 | comp_22=` factorA.x*factorB.y + factorA.y*factorB.x); // the products imaginary part |
| 328 | comp_23=` |
| 329 | comp_24=` |
| 330 | comp_25=`denominator = product + float2(q7,q8); |
| 331 | comp_26=` |
| 332 | comp_27=`fraction = float2( numerator.x*denominator.x + numerator.y*denominator.y, // the fractions real part |
| 333 | comp_28=` numerator.y*denominator.x - numerator.x*denominator.y)/ // the fractions imaginary part |
| 334 | comp_29=` (denominator.x*denominator.x + denominator.y*denominator.y); |
| 335 | comp_30=` |
| 336 | comp_31=`uv = fraction*0.5; |
| 337 | comp_32=` |
| 338 | comp_33=`// *** |
| 339 | comp_34=` |
| 340 | comp_35=` |
| 341 | comp_36=`// *** Flexis logarithmic spiral code |
| 342 | comp_37=` |
| 343 | comp_38=`float t = time; // set velocity here |
| 344 | comp_39=`float2 c = (uv-0.5)*aspect.wz; |
| 345 | comp_40=`float1 ang_hq = atan2(c.x,c.y); |
| 346 | comp_41=`// q11 = 1/asin(1); from the init section |
| 347 | comp_42=`float2 spiral = float2(ang_hq*q11*2+t*0,aspect.w*log(length(c))+ang_hq*q11-t); |
| 348 | comp_43=`spiral = 0.5 + (0.5 - abs( frac( spiral * 0.5 ) * 2.0 - 1.0 ))*0.95; // mirror |
| 349 | comp_44=`uv = spiral; |
| 350 | comp_45=` |
| 351 | comp_46=`// *** |
| 352 | comp_47=` |
| 353 | comp_48=`ret = tex2d(sampler_main,spiral); |
| 354 | comp_49=`//ret = GetPixel(uvo); |
| 355 | comp_50=`} |